/**
 **用于图片上传
 *****
 * ************/
import request from '../utils/fetch'
//图片上传
export function addIdCard(data) {
    return request({
        url: '/img/ocr/idCard?side=face',
        method: 'post',
        requestBody: 'formData',
        loading: true,
        data: data
    })
}
//身份证背面及手持
export function addIdCardBack(data) {
    return request({
        url: '/img/ocr/idCard',
        method: 'post',
        requestBody: 'formData',
        loading: true,
        data: data
    })
}
//服务器图片上传
export function uploadServer(data) {
    return request({
        url: '/img/upload/server',
        method: 'post',
        requestBody: 'formData',
        loading: true,
        data: data
    })
}

//身份证图片识别，使用完整图片路径校验
export function idCardSdk(data) {
    return request({
        url: '/img/ocr/idCardSdk',
        method: 'post',
        loading: true,
        data: data
    })
}